﻿namespace OasisCiq.Xprl
{
    using System;
    using System.Linq;
    using XS;

    /// <summary>
    /// List of priorities of the relationships
    /// </summary>
    public class RelationshipPriorityList : XSNormalizedString
    {
        private static readonly string[] PossibleValues = new[]
        {
            "Critical",
            "High",
            "Medium",
            "Low"
        };

        public RelationshipPriorityList(string value) 
            : base(value)
        {
            if (!PossibleValues.Contains(value))
            {
                throw new ArgumentOutOfRangeException();
            }
        }
    }
}
